import request from './http'

// 热门搜索
// https://apis.netstart.cn/bcomic/SearchRecommend?num=10
export function getHotSearchData() {
    return request({
        url: '/bcomic/SearchRecommend?num=10',
        method: 'get',
    })
}

// 搜索结果
// https://apis.netstart.cn/bcomic/Search?styleId=-1&areaId=2&isFinish=-1&order=-1&pageNum=1&pageSize=20&isFree=-1&keyWord=斗罗

export function getResultSearchData(keyWord) {
    return request({
        url: "bcomic/Search?styleId=-1&areaId=2&isFinish=-1&order=-1&pageNum=1&pageSize=20&isFree=-1&keyWord=" + keyWord + "",
        method: 'get',
    })
}

// 搜索建议
// https://apis.netstart.cn/bcomic/SearchSug?term=天&num=20
export function getSearchSugData(keyWord) {
    return request({
        url: '/bcomic/SearchSug?term=' + keyWord + '&num=20',
        method: 'get',
    })
}
